I have 50 variables that need to be defined. I have put all 12 of the program sections into functions and I was wondering if I can put the variable definitions in s function.
I was thinking of somethingl like
function varDefine(){
var num1;
var num2;
...
}
function preMain(){
...}
function main(){
varDefine();
...
}
Any problems with this idea?
I was thinking of somethingl like
function varDefine(){
var num1;
var num2;
...
}
function preMain(){
...}
function main(){
varDefine();
...
}
Any problems with this idea?
Comment